package cn.stylefeng.guns.modular.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 订货单
 * </p>
 *
 * @author 小飞
 * @since 2019-07-02
 */
@TableName("indent_order")
public class IndentOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订货单编号
     */
    @TableField("indent_order_num")
    private String indentOrderNum;

    /**
     * 经销商id
     */
    @TableField("dealer")
    private Long dealer;

    /**
     * 采购单id ,隔开
     */
    @TableField("purchase_id")
    private String purchaseId;

    /**
     * 购买时间
     */
    @TableField("time")
    private Date time;

    /**
     * 审核状态 1.待审核 2,审核通过3.审核失败4.退回
     */
    @TableField("check_code")
    private Integer checkCode;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    @TableField("indent_status")
    private Integer indentStatus;

    /**
     * 流程id
     */
    @TableField("process_instance_id")
    private String processInstanceId;

    public Integer getIndentStatus() {
        return indentStatus;
    }

    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    public void setIndentStatus(Integer indentStatus) {
        this.indentStatus = indentStatus;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getIndentOrderNum() {
        return indentOrderNum;
    }

    public void setIndentOrderNum(String indentOrderNum) {
        this.indentOrderNum = indentOrderNum;
    }

    public Long getDealer() {
        return dealer;
    }

    public void setDealer(Long dealer) {
        this.dealer = dealer;
    }

    public String getPurchaseId() {
        return purchaseId;
    }

    public void setPurchaseId(String purchaseId) {
        this.purchaseId = purchaseId;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getCheckCode() {
        return checkCode;
    }

    public void setCheckCode(Integer checkCode) {
        this.checkCode = checkCode;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "IndentOrder{" +
        "id=" + id +
        ", indentOrderNum=" + indentOrderNum +
        ", dealer=" + dealer +
        ", purchaseId=" + purchaseId +
        ", time=" + time +
        ", checkCode=" + checkCode +
        ", remark=" + remark +
        "}";
    }
}
